package com.air.designmodel.fourteen;


/**
 * 糖果售罄状态
 *
 * @author shent
 */
public class SoldOutState implements State {
    GumballMachine gumballMachine;

    public SoldOutState(GumballMachine gumballMachine) {
        this.gumballMachine = gumballMachine;
    }

    @Override
    public void insertQuarter() {
        System.out.println("Gumball machine has been sold out,don't insert quarter");
    }

    @Override
    public void ejectQuarter() {
        System.out.println("This sold out state,you can't eject quarter");
    }

    @Override
    public void turnCrank() {
        System.out.println("This sold out state,you can't turn crank");
    }

    @Override
    public void dispense() {
        System.out.println("This sold out state,you can't dispense");
    }
}
